<?php /* Smarty version Smarty-3.0.9, created on 2013-04-05 17:14:17
         compiled from "C:/wamp/www/glight/templates\constructor1.tpl" */ ?>
<?php /*%%SmartyHeaderCode:26578515f0669652799-75505585%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd59a06ccff2ce620b531b21a34351a7f725ae006' => 
    array (
      0 => 'C:/wamp/www/glight/templates\\constructor1.tpl',
      1 => 1365182053,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '26578515f0669652799-75505585',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div class="square">
    <b>Personas Base de Datos:</b>
    <br />
    <hr>
<?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('personas')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
?>
    <b>Name:</b> <?php echo $_smarty_tpl->getVariable('value')->value->get('name');?>
<br />
    <b>Document:</b> <?php echo $_smarty_tpl->getVariable('value')->value->get('id');?>
<br />
    <b>Salary:</b> $ <?php echo $_smarty_tpl->getVariable('value')->value->get('salary');?>
<br />
    <br />
    <hr>
 <?php }} ?>

  <b>Las persona con menor salario es:</b>
    <br />
    <hr>
     <b>Name:</b> <?php echo $_smarty_tpl->getVariable('personas')->value[$_smarty_tpl->getVariable('menorSalario')->value]->get('name');?>
<br />
    <b>Document:</b> <?php echo $_smarty_tpl->getVariable('personas')->value[$_smarty_tpl->getVariable('menorSalario')->value]->get('id');?>
<br />
    <b>Salary:</b> $ <?php echo $_smarty_tpl->getVariable('personas')->value[$_smarty_tpl->getVariable('menorSalario')->value]->get('salary');?>
<br />
    <br />
    <hr>
    
    <b>El promedio del salario es:</b>
    <br />
    $ <?php echo $_smarty_tpl->getVariable('promedio')->value;?>

    <br />
    <hr>
 
</div>
